import requests
import json
import time

team_id = {
    '对不队': '6257e8b8d0967d73f0f9715b',
    '对对队': '6257e8b8d0967d73f0f97158',
    'or 1=1': '6257e8b8d0967d73f0f97155',
}

def get_path(team_id):
    api_prefix = 'https://gplt.patest.cn/api/cached/board/team/'
    return api_prefix + team_id


params = {
    'timestamp': int(time.time()),
}

credits_of = dict()

for team_name in team_id.keys():
    r = requests.get(get_path(team_id[team_name]), params=params)
    if r.status_code == requests.codes.ok:
        print("OK")
    d = json.loads(r.text)
    for member in d['data']['data']['members']:
        credits_of[member['name']] = member['v']['tScoreStrict']


for name in credits_of:
    print(name, '\t', credits_of[name])
